package com.lengxf.mybatis.mysql.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lengxf.mybatis.mysql.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BookMapper extends BaseMapper<Book> {

    default Page<Book> queryPage() {
        Page<Book> page = Page.of(1, 2);
        return selectPage(page, null);
    }

    void insert2(@Param("param") Book book);


}
